package com.qc.bug.services.bugInfo;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qc.bug.dao.BugInfoMapper;
import com.qc.bug.pojo.BugInfo;

@Service
public class BugInfoServicesImpl implements BugInfoServices {

	private Logger log = Logger.getLogger(BugInfoServicesImpl.class);

	@Autowired
	private BugInfoMapper bugInfoDao;

	@Override
	public void addBugInfo(BugInfo bugInfo) {
		int i = bugInfoDao.addBugInfo(bugInfo);
		if (i > 0) {
			log.debug("用户【" + bugInfo.getAddpersonid() + "】添加BUG信息成功！");
		}
	}
}
